import request from '@/utils/request'

// 查询微信商品订单列表
export function listWxOrder(query) {
  return request({
    url: '/business/appointment/appointmentList',
    method: 'get',
    params: query
  })
}

// 查询微信商品订单详细  67.3
export function getWxOrder(id) {
  return request({
    url: '/business/wxOrder/' + id,
    method: 'get'
  })
}

// 新增微信商品订单
export function addWxOrder(data) {
  return request({
    url: '/business/wxOrder',
    method: 'post',
    data: data
  })
}

// 修改微信商品订单
export function updateWxOrder(data) {
  return request({
    url: '/business/appointment/createRefund',
    method: 'put',
    data: data
  })
}

// 删除微信商品订单
export function delWxOrder(id) {
  return request({
    url: '/business/wxOrder/' + id,
    method: 'delete'
  })
}



// 获取用户咨询档案详细信息
export function appointment(id) {
  return request({
    url: '/business/appointment/' + id,
    method: 'get'
  })
}